﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gl_mes.DAL.MesDB
{
    [Serializable]
    [Table("standard_qc")]
    public class StandardQC
    {
        /// <summary>
		/// ID，自增长
		/// </summary>
		[Column("id"), Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }

        /// <summary>
        /// 年月
        /// </summary>
        [Column("ym")]
        public string YM { get; set; }


        /// <summary>
        /// 生产线ID
        /// </summary>
        [Column("prod_line_id")]
        public int? ProdLineID { get; set; }


        /// <summary>
        /// 目标合格率
        /// </summary>
        [Column("pass_rate")]
        public decimal? PassRate { get; set; }

        /// <summary>
        /// 线类型，up代表上限线，down代表下限线，stand代表标准线
        /// </summary>
        [Column("line_type")]
        public string LineType { get; set; }


        /// <summary>
        /// 线类型，up代表上限线，down代表下限线，stand代表标准线
        /// </summary>
        [NotMapped]
        public string LineTypeName { get; set; }

        /// <summary>
        /// 生产线名称
        /// </summary>
        [NotMapped]
        public string ProdLineName { get; set; }
    }
}
